home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-05-16 | 4.3 KB | 97 lines | [TEXT/text] |
- Comment From PUGH@CCC.MFENET on 8-MAY-1987 10 33 43.50 PDT
- Subject Sneaky Lightspeed Pascal "Feature"
-
- Well, I sure feel foolish. I was nabbed by a feature of
- Lightspeed Pascal and it ends up making me look pretty inept.
- However, I will swallow my pride and tell what I have learned in
- order to prevent it from happening to someone else.
-
- I was trying to fix a couple of little bugs in Randomizer, as you
- probably noticed. I had placed the Randomizer source, project,
- and resource files in a folder deep in the my disk for permanent
- storage. When I wanted to work on them, I would copy them into
- the System Folder to do the development and then copy them back
- when I was done. So far so good.
-
- Well, I noticed that I had lost some of the changes I had made.
- So, after some experimentation I discovered that LSP was saving
- the pathname of the source code and modifying the copy that was
- back in the original directory, and not the copy in the System
- Folder, although it was using that project and that resource
- file.
-
- A picture would be appropriate here, but you don't get one, you
- get a table instead. These are the files used by LSP.
-
- HD System Folder HD LSP Projects Randomizer
- ----------------- ---------------------------
- Random Project <--- Random Project
- Random.pas Random.pas <---
- Random Resources <--- Random Resources
-
- Needless to say, this is a bit sneaky of LSP, but to be expected
- since it manages the pathnames for you. It is related to the
- problem where LSP cannot find a file and asks you to look for it,
- only to reveal it in the default directory. LSP should look in
- the default directory first, and then search it's saved pathname.
- That would remove some of the ambiguity from the issue and would
- prevent it from asking you to look for all the files when you
- move a project to a new folder or disk.
-
- The simplest fix is to modify the project file to use the source
- copy by holding down the Option key and double clicking on the
- source name in the project window. This is equivalent to Remove
- and Add. I had merely been double clicking to bring up the
- source and getting the wrong copy unknowingly.
-
- Well, since I have been copying the source, project, and resource
- files back to their original locations (replacing the ones
- there), I have been losing my changes. This means that the
- Randomizer in the archives is a goof and here is the correct one.
- Lord, please help me so that I don't have to post this again. I
- apologize profusely for the inconvienience and promise that
- everything now works as advertised. I promise not to do this
- again.
-
- People using Randomizer should be aware that the old BeepInit
- crashes frequently. You should be using the one included with
- Randomizer, which is also archived as INIT-SOUND-BEEP.HQX on
- Sumex-Aim.Stanford.Edu. People start using this and then blame
- Randomizer when the BeepInit crashes. Honest, it's not my fault.
- Randomizer just makes sure that BeepInit eventually gets the one
- file that will crash it.
-
- If you pass Randomizer along, I would appreciate it if you would
- keep the BeepInit and SoundInit files with it. Thanks for your
- support.
-
- Jon
-
- N L pugh@nmfecc.arpa
- M A L National Magnetic Fusion Energy Computer Center
- F T N Lawrence Livermore National Laboratory
- E L PO Box 5509 L-561
- C Livermore, California 94550
- C (415) 423-4239
-
-
- here is the original help file
-
- Ok, here is the new copy of the Randomizer Packit file. It
- contains Randomizer, the INIT that switches your StartUpScreen,
- StartUpSound, and BeepSound. It also contains the Backdrop INIT
- that keeps your StartUpScreen as your desktop, the SoundINIT that
- plays the StartUpSound, and BeepINIT, which substitutes a
- digitized sound for your system beep.
-
- All of these are compatible with System 4. All you have to come
- up with is a Mac and some sounds. Disk space is also highly
- recommended as sounds are large.
-
- I would like to thank all the people who have helped me make
- Randomizer as robust as it is. This version has yet another
- small bug fix that had to do with exception handling. It will
- now cope with most any combination of files and file names. In
- the past it just went ahead and created a file if it did not
- exist. Now it reports the situation.
-